import requests

url = 'https://fanyi.qq.com/api/translate'
data = {
    'source': 'auto',
    'target': 'en',
    'sourceText': '中国'
}
headers = {
    'User-Agent':'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36'
}
rep = requests.post(url, data=data, headers=headers)
print(rep.text)

rep.close()